home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: List manager
- Sent: 5/15/96 8:15 AM
- Received: 5/17/96 9:02 AM
- From: Bruce Alspaugh, alspaugh@showme.missouri.edu
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >>
- >>Is there now or in planning an ODF version of the Mac List manager? I
- >>need to build a scrolling list where each row has various small icons,
- >>text and clickable rectangular subsections as well as hiliting of the
- >>selected rows.
- >>
- >>Lars Travers
- >
- >ODF 1 released this week (http://www.devtools.apple.com/odf/) contains a
- >FW_CListBox view class using the Mac list manager. However the current
- >API supports only text data in list cells and doesn't let you specify
- >your own LDEF.
- >
- >Since ODF comes with source code you could try to patch ODF's Framework
- >static library if you are in a hurry to get this feature. Adding an LDEF
- >argument to ::LNew isn't difficult but there may be issues related to
- >drawing because of the way things must be setup in an "OpenDoc world". I
- >need to investigate further myself before making any promises for LDEF
- >support in a future patch.
-
- Laurent,
-
- There are several limitations with using the Mac List Manager that
- I see: the List Manager is not cross-platform, has a 32K list size limit,
- requires that all cells must have the same dimensions, and does not support
- 32-bit coordinates for large tables. To get around these limitations, the
- THINK Class Library (TCL) uses a table class that is not built on top of
- the List Manager. It allows lists larger than 32K. The developer can draw
- text, or anything they want inside of a cell and select rows, columns,
- rectangular selections, and even discontiguous selections. It also allows
- the width and height of cells to vary from one row or column to the next.
- I believe MacApp has similar TGridView and TTextGridView classes. I would
- strongly suggest not using the List Manager because of its limitations.
-
- I think ODF needs much more generalized table classes than just a
- one-dimensional text list. A table class ought to have two methods the
- developer may override: a GetCellText method and a DrawCell method. The
- default implementation of DrawCell simply calls GetCellText with the
- coordinates of the cell to fetch the text and then draws it. Thus, all the
- developer has to do to draw tables consisting of pure text is to override
- GetCellText. If they want to draw icons or other graphics, they override
- the DrawCell method. A FocusCell method could set up the drawing
- environment for individual cells by setting fonts, styles etc. for text
- cells, and pen patterns, pen sizes etc. for graphics cells. There can also
- be a HighlightCell method that can be overridden to change the way
- different cells are highlighted.
-
- Just a suggestion,
-
-
- Bruce Alspaugh
-
- --------------------------------------------------------------------------
- Bruce Alspaugh, Ph.D. |
- Software Engineer, SchoolWare | "The bug stops here!"
- 2809 Skyview Road |
- Columbia, MO 65202-2213 | With apologies to
- E-mail: alspaugh@showme.missouri.edu | Harry S. Truman
- Web Page: |
- http://www.missouri.edu/~alspaugh |
- Fax: (573) 445-9981 |
- --------------------------------------------------------------------------
-
-